﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Weight.Model.ResultEntity
{
    /// <summary>
    /// 合同选择
    /// </summary>
  public    class ContractTicketSelectRes
    {
        /// <summary>
        /// 客户名称
        /// </summary>
        public string Customer { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string CardId { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        public string PhoneNum { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Company { get; set; }

        /// <summary>
        /// 订单子编号
        /// </summary>		
        public string Id { get; set; }
     
        /// <summary>
        /// 货物名称
        /// </summary>		
        public string Material { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 订单模式
        /// </summary>
        public string Mode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>		
        public string Spec { get; set; }

        /// <summary>
        /// 信用额度
        /// </summary>		
        public decimal CreditVal { get; set; }
        /// <summary>
        /// 发货
        /// </summary>		
        public string Sender { get; set; }
        /// <summary>
        /// 收货
        /// </summary>		
        public string Receiver { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 消费数量
        /// </summary>
        public decimal ConsumeAmount { get; set; }

        /// <summary>
        /// 剩余数量
        /// </summary>
        public decimal RemainAmount
        {
            get
            {

                return Math.Round(Amount - ConsumeAmount, 3);
            }
        }

        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 消费金额
        /// </summary>
        public decimal ConsumeMoney { get; set; }

        /// <summary>
        /// 剩余金额
        /// </summary>
        public decimal RemainMoney
        {
            get
            {
                return Math.Round(Money - ConsumeMoney, 3);
            }
        }
    }
}
